import http from '@/utils/http.js';
/**
 * 获取用户信息
 * @param {Object} 
 * @returns
 */
export function getUserInfoApi() {
  return http({
    url: '/user/user_info',
    method: 'get',
  });
}

/**
 * 编辑个人信息
 * @param {Object} data
 * @returns
 */
export function editUserInfoApi(data) {
  return http({
    url: '/user/user_perfect',
    method: 'post',
    data: data
  });
}

/**
 * 邮箱绑定
 * @param {Object} data
 * @returns
 */
export function bindEmailApi(data) {
  return http({
    url: '/user/email_bind',
    method: 'post',
    data: data
  });
}

/**
 * 手机号绑定
 * @param {Object} data
 * @returns
 */
export function bindPhoneApi(data) {
  return http({
    url: '/user/phone_bind',
    method: 'post',
    data: data
  });
}

/**
 * 微信绑定
 * @param {Object} data
 * @returns
 */
export function bindWechatApi(data) {
  return http({
    url: '/user/wx_bind',
    method: 'post',
    data: data
  });
}